<?php
/**
 * Larfree Api类
 * @author blues
 */
namespace App\Http\Controllers\Admin\Express;

use Illuminate\Http\Request;
use Larfree\Controllers\AdminApisController as Controller;
use App\Models\Express\ExpressProblem;
class ProblemController extends Controller
{
    public function __construct(ExpressProblem $model )
    {
        $this->model = $model;
        parent::__construct();
    }

    public function store(Request $request)
    {
        $model = $this->model;
        $data = $request->all();
        $data['user_id']=getLoginUserID();
        $model->startLog();
        $data = $model->create($data);
        return Response()->success($data,'添加成功');
    }
}